<include file="Public/header"/>

		<div id="app">
			<!-- sidebar -->
			<include file="Public/left"/>
			<!-- / sidebar -->
			<div class="app-content">
				<!-- start: TOP NAVBAR -->
				<include file="Public/headernav"/>
				<!-- end: TOP NAVBAR -->
				<div class="main-content" >
					<div class="wrap-content container" id="container">
						<!-- start: PAGE TITLE -->
						<section id="page-title">
							<div class="row">
								<div class="col-sm-8">
									<!-- <h1 class="mainTitle">会员列表</h1> -->
									<span class="mainDescription">商户管理页面 </span>
								</div>
								<!-- <ol class="breadcrumb">
									<li>
										<span>Pages</span>
									</li>
									<li class="active">
										<span>Blank Page</span>
									</li>
								</ol> -->
							</div>
						</section>
						<!-- end: PAGE TITLE -->
						<!-- start: YOUR CONTENT HERE -->
<style type="text/css">
	.class_hidden{display:none;}
   .panel-body{padding: 5px;}
   .panel-heading{padding: 5px;min-height: 25px;}
</style>						
<div class="row">
<div class="col-lg-12 col-md-12 margin-top-20" >
	<div class="panel panel-white">
		<div class="panel-heading">
			<h5 class="panel-title">筛选</h5>
		</div>
	<form role="form" class="form-inline">	
		<div class="panel-body">
			
			
				<div class="form-group">
					  <label for="account" class="sr-only">
						商户名称
					  </label>
						<input type="text" name="member_name" value="{$_GET.member_name}" id="member_name" placeholder="商户名称" class="form-control">
				</div>
				<div class="form-group">
					  <label for="account" class="sr-only">
						商户帐号
					  </label>
						<input type="text" name="mobile" value="{$_GET.account}" id="account" placeholder="商户帐号" class="form-control">
				</div>
				<!--  <div class="form-group">
									<label for="member_type" class="sr-only">
										商户类型
									</label>
									商户类型：
									<select class="form-control" id="member_type" name="member_type">
										<option value="all" <if condition="$_GET['member_type'] =='all'">selected</if>>全部</option>
										<option value="1" <if condition="$_GET['member_type'] ==1">selected</if>>商户会员</option>
										<option value="0" <if condition="$_GET['member_type'] ==='0'">selected</if>>普通会员</option>
									</select>
								</div>	 -->
               <div class="form-group">
					<label for="recommend_status" class="sr-only">
						推荐
					</label>
					<select class="form-control" id="recommend_status" name="recommend_status">
						<option value="all" <if condition="$_GET['recommend_status'] =='all'">selected</if>>全部推荐</option>
						<option value="1" <if condition="$_GET['recommend_status'] ==1">selected</if>>已推荐</option>
						<option value="0" <if condition="$_GET['recommend_status'] ==='0'">selected</if>>未推荐</option>
					</select>
				</div>
			<!-- 	<div class="form-group">
				<label for="member_status" class="sr-only">
					认证
				</label>
				认证：
				<select class="form-control" id="member_status" name="member_status">
					<option value="all" <if condition="$_GET['member_status'] =='all'">selected</if>>全部</option>
					<option value="1" <if condition="$_GET['member_status'] ==1">selected</if>>已认证</option>
					<option value="0" <if condition="$_GET['member_status'] ==='0'">selected</if>>未认证</option>
				</select>
			</div> -->
				<div class="form-group">
					<label for="member_freeze" class="sr-only">
						状态
					</label>
					<select class="form-control" id="member_freeze" name="member_freeze">
						<option value="all" <if condition="$_GET['member_freeze'] =='all'">selected</if>>全部状态</option>
						<option value="1" <if condition="$_GET['member_freeze'] ==1">selected</if>>已冻结</option>
						<option value="0" <if condition="$_GET['member_freeze'] ==='0'">selected</if>>未冻结</option>
					</select>
				</div>		

			
		</div>
 <div class="panel-body">

	<div class="form-group">
		<label for="start_time" class="sr-only">
			注册时间
		</label>
	  <p class="input-group input-append datepicker date">
			<input type="text" class="form-control" name="start_time" value="{$_GET['start_time']}" placeholder="注册时间"/>
			<span class="input-group-btn">
				<button type="button" class="btn btn-default">
					<i class="glyphicon glyphicon-calendar"></i>
				</button> </span>
		</p>
		--
		 <p class="input-group input-append datepicker date">
			<input type="text" class="form-control" name="end_time" value="{$_GET['end_time']}" placeholder="注册时间"/>
			<span class="input-group-btn">
				<button type="button" class="btn btn-default">
					<i class="glyphicon glyphicon-calendar"></i>
				</button> </span>
		</p>

	</div>
<div class="form-group  " style="margin-top: -10px;">
    <button class="btn btn-primary" type="submit">
		提交
	</button>
	</div>


 </div>


    </form>
	</div>
</div>
		</div>	



<table class="table table-hover" id="sample-table-1">
				<thead>
					<tr>
						<th class="center">#</th>
						<th>商户帐号</th>
						<th>商户名称</th>
						<th class="hidden-xs">电话</th>
						
						<th>商户余额</th>
						<!-- <th>商户余额</th> -->
						<th>平台推荐</th>
						<th>首页推荐</th>
						<th>状态</th>
						<th></th>
					</tr>
				</thead>
				<tbody>
      <volist  name="list['list']" id='vo' key='key'>
					<tr  >
						<td class="center"></td>
						<td> 
							{$vo.account}
						</td>
						<td> 
							<a href="{:U("Admin/Shop/shop_detail",array('id'=>$vo['id']))}" >
							{$vo.shop_name}
						    </a>
						</td>
						<td class="hidden-xs">{$vo.link_no}
						</td>
						<td>{$vo.balance}	</td>
						<td>{$vo['recommend_status']?'<span style="color:green;">已推荐</span>':'未推荐'}	</td>
						<td>{$vo['is_show_index']?'<span style="color:green;">已推荐到首页</span>':'未推荐到首页'}	</td>
						<td>{$vo['status']?'正常':'<span style="color:red;">已冻结</span>'}	</td>
						<td class="center">
						<div class="visible-md visible-lg hidden-sm hidden-xs">

                             <if condition="(!empty($_SESSION['topadmin']))">
								  {//管理员}

								  <if condition="$vo.is_show_index eq 0">
										<a href="{:U("Admin/Shop/shop_show_index",array('id'=>$vo['id']))}" class="btn btn-transparent btn-xs tooltips" tooltip-placement="top" tooltip="Remove" onclick="return confirm('确定推荐该用户？')"  tooltip-placement="top" data-toggle="tooltip" data-original-title="推荐到首页"><i class="fa fa-thumbs-up"></i></a>
					                    <else/>
					                     <a href="{:U("Admin/Shop/shop_show_index",array('id'=>$vo['id']))}" class="btn btn-transparent btn-xs tooltips" tooltip-placement="top" tooltip="Remove" onclick="return confirm('确取消推荐该用户？')" tooltip-placement="top" data-toggle="tooltip" data-original-title="取消推荐到首页"><i class="fa fa-thumbs-down"></i></a>
										</if>
                                      
                                      	<if condition="$vo.recommend_status eq 0">
										<a href="{:U("Admin/Shop/shop_tuijian",array('id'=>$vo['id']))}" class="btn btn-transparent btn-xs tooltips" tooltip-placement="top" tooltip="Remove" onclick="return confirm('确定推荐该用户？')"  tooltip-placement="top" data-toggle="tooltip" data-original-title="推荐"><i class="fa fa-thumbs-up"></i></a>
					                    <else/>
					                     <a href="{:U("Admin/Shop/shop_tuijian",array('id'=>$vo['id']))}" class="btn btn-transparent btn-xs tooltips" tooltip-placement="top" tooltip="Remove" onclick="return confirm('确取消推荐该用户？')" tooltip-placement="top" data-toggle="tooltip" data-original-title="取消推荐"><i class="fa fa-thumbs-down"></i></a>
										</if>



									<a href="{:U("Admin/Shop/shop_edit",array('id'=>$vo['id']))}" class="btn btn-transparent btn-xs"  tooltip="Edit"  tooltip-placement="top" data-toggle="tooltip" data-original-title="编辑"><i class="fa fa-pencil"></i></a>
									
										<if condition="$vo.status eq 1">
										<a href="{:U("Admin/Shop/shop_freeze",array('id'=>$vo['id']))}" class="btn btn-transparent btn-xs tooltips" tooltip-placement="top" tooltip="Remove" onclick="return confirm('确定冻结该用户？')"  tooltip-placement="top" data-toggle="tooltip" data-original-title="冻结"><i class="fa fa-minus-square"></i></a>
					                    <else/>
					                     <a href="{:U("Admin/Shop/shop_freeze",array('id'=>$vo['id']))}" class="btn btn-transparent btn-xs tooltips" tooltip-placement="top" tooltip="Remove" onclick="return confirm('确定解冻该用户？')" tooltip-placement="top" data-toggle="tooltip" data-original-title="解冻"><i class="fa fa-check-square"></i></a>
										</if>
				                 
                            </if>
						</div>
						</td>
					</tr>
	
</volist>

		
				</tbody>
			</table>




 <div class="col-md-12 pages" align="center">{$list['page']|default='暂无数据'}</div>


						<!-- end: YOUR CONTENT HERE -->
					</div>
				</div>
			</div>
			<!--  FOOTER and SETTINGS -->
			
           <include file="Public/footer"/>
			<!-- end: FOOTER -->
			<!-- start: OFF-SIDEBAR -->
			
			<!-- end: OFF-SIDEBAR -->
			
		</div>
		<!-- start: MAIN JAVASCRIPTS -->

         <include file="Public/javascript"/>
         <include file="Public/javascript_datepicker"/>
        
	</body>
</html>
